package com.grp6.game.chess.view;

import java.util.ArrayList;
import java.util.List;

import com.grp6.game.chess.model.ChessGameModel;
import com.grp6.game.common.InvalidMoveException;
import com.grp6.game.view.AbstractCellView;

public class ChessGameView extends AbstractCellView<ChessGameModel>{

	@Override
	public void update() {
		for(AbstractCellView view:views)
			view.update();
		
	}
	
	private List<AbstractCellView> views = new ArrayList<AbstractCellView>();

	public List<AbstractCellView> getSubViews() {
		return views;
	}

	public void notifyInvalidMove(InvalidMoveException e) {
		//TODO Fixme
	}
}
